<%@ Page Language="VB" MasterPageFile="~/Presentation/MasterPage.master" AutoEventWireup="false" CodeFile="~/Code/CreateCompany.aspx.vb" Inherits="Presentation_CreateCompany" title="Untitled Page" %>
<%@ PreviousPageType VirtualPath="~/Presentation/ChangeDetails.aspx" %> 

<asp:Content ID="Content1" ContentPlaceHolderID="MainMaster" Runat="Server">
<form runat=server>
<div>
    <asp:Label ID="DuplicateCompany" Visible=False  runat="server" Font-Bold="True" Text="This Company already Exists" Width="782px" Height="22px"></asp:Label>&nbsp;</div>
    
    <table border="0" cellpadding="0" cellspacing="0" style="width: 950px">
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Enter the company Name:</td>
            <td style="width: 91px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtClientName" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td style="width: 120px" nowrap="noWrap" bgcolor="#eff3fb">
                            <asp:RequiredFieldValidator ControlToValidate="txtClientName" ID="vdtxtClientName" runat="server" ErrorMessage="You must Enter the Client Name" Width="220px"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                Address 1:</td>
            <td colspan="2" style="width: 90px">
                <asp:TextBox ID="txtAddress1" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Address 2:</td>
            <td colspan="2" style="width: 90px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtAddress2" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                Address 3:</td>
            <td colspan="2" style="width: 90px">
                <asp:TextBox ID="txtAddress3" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                City:</td>
            <td colspan="2" style="width: 90px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtCity" runat="server" MaxLength="50" Width="165px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                Pin Code:</td>
            <td colspan="2" style="width: 90px">
                <asp:TextBox ID="txtPinCode" runat="server" MaxLength="50" Width="165px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Contact Person:</td>
            <td colspan="1" style="width: 90px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtContactPerson" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td bgcolor="#eff3fb" colspan="1" style="width: 90px">
                <asp:RequiredFieldValidator ID="vdtxtContactPerson" runat="server"
                 ControlToValidate="txtContactPerson" ErrorMessage="You must enter a contact" Width="165px"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left; height: 24px;">
                Designation:</td>
            <td style="width: 91px; height: 24px;">
                <asp:TextBox ID="txtDesignation" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td style="width: 120px; height: 24px;" nowrap="noWrap">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Telephone:</td>
            <td colspan="1" style="width: 90px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtTelephone" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td bgcolor="#eff3fb" colspan="1" style="width: 90px">
                <asp:CustomValidator ID="cvdTelEmail"
                 OnServerValidate ="ValidateTelEmail" runat="server"
                 ValidateEmptyText=true  ErrorMessage="Telephone, or Email is Necessary"
                    Width="277px"></asp:CustomValidator></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                Mobile:</td>
            <td style="width: 91px;">
                <asp:TextBox ID="txtMobile" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td nowrap="nowrap" style="width: 120px;">
            </td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Email:</td>
            <td style="width: 91px">
                <asp:TextBox ID="txtemail" runat="server" MaxLength="100" Width="427px"></asp:TextBox></td>
            <td style="width: 120px" nowrap="noWrap">
                <asp:RegularExpressionValidator ControlToValidate="txtemail"
                 ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" ID="RegularExpressionValidator1" runat="server" ErrorMessage="Please Enter a valid Email-ID" Width="181px"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                Profile:</td>
            <td style="width: 91px" bgcolor="#eff3fb">
                <asp:TextBox ID="txtProfile" runat="server" Height="81px" TextMode="MultiLine" Width="253px"></asp:TextBox></td>
            <td style="width: 120px" nowrap="noWrap" bgcolor="#eff3fb">
            </td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;" bgcolor="#eff3fb">
                Comments</td>
            <td colspan="2">
                <asp:TextBox ID="txtComments" runat="server" Height="83px" TextMode="MultiLine" Width="253px"></asp:TextBox>
                <b>PLEASE DO NOT WRITE WHAT HAPPENED IN THIS BOX. IF AN ENQUIRY, WRITE 'ENQUIRY'</b>
                    </td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left;">
                <asp:Button ID="Button1" runat="server" Text="Submit" /></td>
            <td style="width: 91px">
                <asp:Label ID="lblSuccess" runat="server" Visible=false Font-Bold="True" Text="Successfully Saved" Width="213px"></asp:Label></td>
            <td style="width: 120px" nowrap="noWrap">
            </td>
        </tr>
        <tr>
            <td style="width: 168px; text-align: left">
                <asp:HiddenField ID="PostBack" runat="server" />
            </td>
            <td colspan="2">
        <asp:GridView ID="Handling" runat="server">
    </asp:GridView>
                </td>
        </tr>
    </table>    
    
    </form>
    
 </asp:Content>

